package cn.texous.demo.dls.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * insert description here
 *
 * @author Showa.L
 * @since 2019/8/9 11:18
 */
@Slf4j
@Component
public class LogPrintSchedule {

    /**
     * 定时器测试日志
     */
    @Scheduled(fixedDelay = 30000)
    public void test() {
        System.out.println("测试 System.out.println;");
        System.err.println("测试 System.err.println;");
        log.debug("测试 log.debug;");
        log.info("测试 log.info;");
        log.error("测试 log.error;");
        log.warn("测试 log.warn;");
        log.trace("测试 log.trace;");

    }

}
